﻿<Window 
    x:Class="ZephyrLite.Login"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Login"
    WindowStartupLocation="CenterScreen"
    AllowsTransparency="True"    
    ShowInTaskbar="False"    
    Background="Transparent"    
    WindowStyle="None"    
    SizeToContent="WidthAndHeight" 
    FocusManager.FocusedElement="{Binding ElementName=_txtUserName}">

    <Border CornerRadius="10" BorderBrush="Gray" BorderThickness="3" Background="#FFD7E9FA" Margin="24" Padding="4">
        <Border.Effect>
            <DropShadowEffect Color="Gray" Opacity="0.50" ShadowDepth="8" />
        </Border.Effect>

        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="65" />
                <ColumnDefinition Width="100" />
                <ColumnDefinition Width="100" />
                <ColumnDefinition Width="65" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Label Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="2" FontSize="18" Margin="10">
                Please log in 
            </Label>
            <Label Grid.Column="1" Grid.Row="1">User Name</Label>
            <TextBox Grid.Column="2" Grid.Row="1" ToolTip="Enter Your User Name" Name="_txtUserName" />
            <Label Grid.Column="1" Grid.Row="2">Password</Label>
            <PasswordBox Grid.Column="2" Grid.Row="2" ToolTip="Enter Your Password" Name="_txtPassword" />
            <Label Grid.Column="1" Grid.Row="3" Foreground="Red" Name="_labelFailed"></Label>
            <StackPanel Grid.Column="2" Grid.Row="3" Margin="10" HorizontalAlignment="Right" Orientation="Horizontal">
                <Button Name="btnLogin" IsDefault="True" Content="Login" Click="ButtonLogin_Click" />
            </StackPanel>
            <StackPanel Grid.Column="3" Grid.Row="3" Margin="10" HorizontalAlignment="Left" Orientation="Horizontal">
                <Button Name="btnCancel" IsCancel="True" Content="Cancel" Click="ButtonCancel_Click" />
            </StackPanel>
        </Grid>

    </Border>
</Window>
